package com.aliang.frame.viewmodel.admin.dept;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class DeptPageResponseVM {

    /**
     * 部门ID
     */
    private Integer id;

    /**
     * 父部门ID，根部门的parentId为0
     */
    private Integer parentId;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 部门备注
     */
    private String remark;

    /**
     * 部门负责人
     */
    private String leader;

    /**
     * 负责人手机号
     */
    private String phone;

    /**
     * 部门排序，越小越靠前
     */
    private int deptSort;

    /**
     * 是否删除，0表示未删除，1表示已删除
     */
    private Boolean deleted;

    /**
     * 部门状态，true表示启用，false表示停用
     */
    private Boolean status;

    /**
     * 创建者ID
     */
    private Integer createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新者ID
     */
    private Integer updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public int getDeptSort() {
        return deptSort;
    }

    public void setDeptSort(int deptSort) {
        this.deptSort = deptSort;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
